//
//  HYGameDetailModel.m
//  HaiYue
//
//  Created by skyline on 2018/7/11.
//  Copyright © 2018年 skyline. All rights reserved.
//

#import "HYGameDetailModel.h"
@implementation HYGameDetailServerModel
@end
@implementation HYGameDetailModel
+ (void)load
{
    //HYGameDetailModel
    [self mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"piclist":@"data.piclist",
                 @"serverlist":@"data.serverlist",
                 @"tradelist":@"data.tradelist",
                 @"giftlist":@"data.giftlist",
                 @"noticelist":@"data.noticelist",
                 @"discount":@"data.gamedata.discount",
                 @"gameid":@"data.gamedata.gameid",
                 @"gamename":@"data.gamedata.gamename",
                 @"simpledesc":@"data.gamedata.simpledesc",
                 @"url":@"data.gamedata.url",
                 @"desc":@"data.gamedata.desc",
                 @"size":@"data.gamedata.size",
                 @"packagename":@"data.gamedata.packagename",
                 @"date":@"data.gamedata.date",
                 @"icon":@"data.gamedata.icon",
                 @"platform":@"data.gamedata.platform",
                 @"type":@"data.gamedata.type",
                 @"lang":@"data.gamedata.lang",
                 @"vesion":@"data.gamedata.vesion",
                 @"mystate":@"data.gamedata.mystate",
                 @"vesioncode":@"data.gamedata.vesioncode",
                 @"booked":@"data.gamedata.booked"};
    }];
    
    [self mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"tradelist":@"HYTradeModel"};
    }];
    
    
    //HYGameDetailModel
    [NSClassFromString(@"HYGameDetailModel") mj_setupObjectClassInArray:^NSDictionary *{
        return @{@"serverlist":@"HYGameDetailServerModel"};
    }];
    
    //end
}

- (NSArray  <HYTradeModel *> *)tradelist
{
    if (!_tradelist)
    {
       _tradelist = [NSArray  array];
    }
    return _tradelist;
}
@end
